//
//  UIViewController+LLLoginVC.m
//  TaoTuo
//
//  Created by admin on 2019/8/30.
//  Copyright © 2019 admin. All rights reserved.
//

#import "UIViewController+LLLoginVC.h"

@implementation UIViewController (LLLoginVC)

- (void)presentLoginViewControllerWithCloseBlock:(dispatch_block_t)closeBlock
{
    TTLoginViewController *loginVC = [[TTLoginViewController alloc] initWithCloseBlock:closeBlock];
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:loginVC];
    nav.modalPresentationStyle = UIModalPresentationFullScreen;
    [self presentViewController:nav animated:YES completion:nil];
}

- (void)presentLoginViewController
{
    TTLoginViewController *loginVC = [[TTLoginViewController alloc] init];
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:loginVC];
    nav.modalPresentationStyle = UIModalPresentationFullScreen;
    [self presentViewController:nav animated:YES completion:nil];
}

@end
